<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

        <meta name="description" content="Administrace FIT-CMS">
        <meta name="robots" content="noindex, nofollow" n:ifset="$robots">

        <title>{$title}</title>

        <!-- favicon -->
        <link rel="shortcut icon" href="{$basePath}/CMS/favicon.ico" type="image/x-icon">
        
        <!-- jQuery, jQuery UI & livequery -->
	<script type="text/javascript" src="{$basePath}/CMS/js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="{$basePath}/CMS/js/jquery-ui-1.8.18.custom.min.js"></script>
	<link type="text/css" rel="stylesheet" href="{$basePath}/CMS/css/overcast/jquery-ui-1.8.18.custom.css">

	<!-- Gridito -->
	<link rel="stylesheet" href="{$basePath}/CMS/css/gridito/gridito.css" type="text/css">
	<script type="text/javascript" src="{$basePath}/CMS/js/jquery.nette.js"></script>
	<script type="text/javascript" src="{$basePath}/CMS/js/jquery.livequery.js"></script>
	<script type="text/javascript" src="{$basePath}/CMS/js/jquery.ui.gridito.js"></script>
        
        <!-- live validation -->
        <script type="text/javascript" src="{$basePath}/CMS/js/live-form-validation.js"></script>
        
        <!-- Ajaxform -->
        <script type="text/javascript" src="{$basePath}/CMS/js/jquery.ajaxform.js"></script>
        
        <!-- vlastni styl -->
        <link rel="stylesheet" media="screen,projection,tv" href="{$basePath}/CMS/css/{$stylesheet}" type="text/css">
        
        <script type="text/javascript" src="{$basePath}/CMS/js/cms.init.js"></script>
        
	{block head}{/block}
    </head>

    <body>        
        <div n:if="isset($userPanelInfo)" id="user-panel">
            <span>{$userPanelInfo}</span>
            <a id="user-panel-logout" href="{plink :User:Login:logout}" title="{dictionary 'user_logout'}"></a>
        </div>
    
        <div class="clearfix"></div>
                
        <div id="page-wrapper">                
            <div id="header-corner"><img src="{$basePath}/CMS/images/header_corner.png"></div>            
            <div id="menu-wrapper">                
                <img id="logo" alt="logo" src="{$basePath}/CMS/images/logo.png" />
                {snippet menu}
                <ul id="menu" n:if="count($menu) > 0">
                    <li n:foreach="$menu as $menuItem">                        
                        <a {ifCurrent $menuItem['activeLink']}class="active"{/ifCurrent} href="{plink $menuItem['link']}"><div>{dictionary $menuItem['title']}</div><img alt="{dictionary $menuItem['title']}" src="{$basePath}/CMS/images/{$menuItem['img']}"></a>
                    </li>
                </ul>
                {/snippet}
            </div>
            
            <div class="clearfix"></div>
        
            <div id="header-line">
                <h1>{block heading}{$title}{/block}</h1>
                <ul id="submenu" n:if="count($submenu) > 0">
                    <li n:foreach="$submenu as $submenuItem">
                        <a {ifCurrent $submenuItem['link']}class="submenu-active"{/ifCurrent} href="{plink $submenuItem['link']}">
                            <span class="dark-icon ui-icon {$submenuItem['icon']}"></span>
                            <span class="submenu-title">{dictionary $submenuItem['title']}</span>
                        </a>
                    </li>
                </ul>
            </div>
            {snippet flashmsg}
            <div n:if="count($flashes)>0" id="flashmessages">
                <div n:foreach="$flashes as $flash"
                    class='flashmessage {$flash->type}'>{$flash->message}
                </div>
            </div>  
            {/snippet}
            
            <div id="content-wrapper">                          
                {include #content}
            </div>
            
            <div id="footer-wrapper">
                <img id="footer-corner" src="{$basePath}/CMS/images/footer_corner.png" />
                <div id="footer">
                    <span>&copy; FIT-CMS {? echo date('Y')}</span>
                </div>
            </div>
        </div>
    </body>
</html>
